<template>
  <div class="container-scroller">
    <!-- partial:partials/_navbar.html -->
    <nav class="navbar col-lg-12 col-12 p-0 fixed-top d-flex flex-row">
        <div class="navbar-brand-wrapper d-flex justify-content-center">
        <div class="navbar-brand-inner-wrapper d-flex justify-content-between align-items-center w-100">  
          <a class="navbar-brand brand-logo"><img src="../assets/images/logo1.jpg" alt="logo"/></a>
          <a class="navbar-brand brand-logo-mini"><img src="../assets/images/logo1.jpg" alt="logo"/></a>
          <a class="navbar-toggler navbar-toggler align-self-center" data-toggle="minimize">
            <span class="mdi mdi-sort-variant"></span>
          </a>
        </div>  
      </div>
      <div class="navbar-menu-wrapper d-flex align-items-center justify-content-end">
        <ul class="navbar-nav navbar-nav-right">
          <li class="nav-item nav-profile dropdown">
            <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" id="profileDropdown">
              <img src="../assets/images/faces/face5.jpg" alt="profile"/>
              <span class="nav-profile-name">Louis Barnett</span>
            </a>
            <div class="dropdown-menu dropdown-menu-right navbar-dropdown" aria-labelledby="profileDropdown">
              <a class="dropdown-item">
                <i class="mdi mdi-settings text-primary"></i>
                Settings
              </a>
              <a class="dropdown-item">
                <i class="mdi mdi-logout text-primary"></i>
                Logout
              </a>
            </div>
          </li>
        </ul>
        <button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button" data-toggle="offcanvas">
          <span class="mdi mdi-menu"></span>
        </button>
      </div>
    </nav>
    <!-- partial -->
    <div class="container-fluid page-body-wrapper">
      <!-- partial:partials/_sidebar.html -->
      <nav class="sidebar sidebar-offcanvas" id="sidebar">

        <ul class="nav">
          <li class="nav-item">
            <RouterLink to="/index/dashboard">
              <a class="nav-link" >
                <i class="mdi mdi-home menu-icon"></i>
                <span class="menu-title">数据统计</span>
              </a>
            </RouterLink>
          </li>

          <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#ui-basic" aria-expanded="false" aria-controls="ui-basic">
              <i class="mdi mdi-circle-outline menu-icon"></i>
              <span class="menu-title">设备管理</span>
              <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="ui-basic">
              <ul class="nav flex-column sub-menu">
                <li> <RouterLink to="/index/chargepile"><a class="nav-link">充电桩管理</a></RouterLink></li>
                <li> <RouterLink to="/index/chargestation"><a class="nav-link">站点管理</a></RouterLink></li>
              </ul>
            </div>
          </li>

          <li class="nav-item">
            <RouterLink to="/index/order">
              <a class="nav-link">
                <i class="mdi mdi-view-headline menu-icon"></i>
                <span class="menu-title">订单管理</span>
              </a>
            </RouterLink>
          </li>

          <li class="nav-item">
            <RouterLink to='/index/user'>
            <a class="nav-link">
              <i class="mdi mdi-chart-pie menu-icon"></i>
              <span class="menu-title">用户管理</span>
            </a>
            </RouterLink>
          </li>

          <li class="nav-item">
            <RouterLink to='/index/map'>
            <a class="nav-link" href="pages/tables/basic-table.html">
              <i class="mdi mdi-grid-large menu-icon"></i>
              <span class="menu-title">IC卡管理</span>
            </a>
            </RouterLink>
            
          </li>

          <li class="nav-item">
            <a class="nav-link" href="pages/icons/mdi.html">
              <i class="mdi mdi-emoticon menu-icon"></i>
              <span class="menu-title">代理商信息管理</span>
            </a>
          </li>

          <li class="nav-item">
            <a class="nav-link" href="documentation/documentation.html">
              <i class="mdi mdi-file-document-box-outline menu-icon"></i>
              <span class="menu-title">充电时段价格管理</span>
            </a>
          </li>
          
          <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#auth" aria-expanded="false" aria-controls="auth">
              <i class="mdi mdi-account menu-icon"></i>
              <span class="menu-title">个人中心</span>
              <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="auth">
              <ul class="nav flex-column sub-menu">
                <li > <a class="nav-link" href="pages/samples/login.html"> 用户信息 </a></li>
                <li > <a class="nav-link" href="pages/samples/login-2.html"> 用户设置 </a></li>
              </ul>
            </div>
          </li>
          
        </ul>
      </nav>
      <!-- partial -->
      <div class="main-panel">
      <RouterView></RouterView>
      </div>
      <!-- main-panel ends -->
    </div>
    <!-- page-body-wrapper ends -->
  </div>
</template>

<script setup>
import '../assets/vendors/base/vendor.bundle.base.js'
import '../assets/vendors/chart.js/Chart.min.js'
import '../assets/vendors/datatables.net/jquery.dataTables.js'
import '../assets/vendors/datatables.net-bs4/dataTables.bootstrap4.js'

import {RouterView} from 'vue-router'
import {RouterLink} from 'vue-router'

</script>

<style>
@import '../assets/vendors/mdi/css/materialdesignicons.min.css';
@import '../assets/vendors/base/vendor.bundle.base.css';
@import '../assets/vendors/datatables.net-bs4/dataTables.bootstrap4.css';
@import '../assets/css/style.css';

</style>
